package org.mat.ipaas.ucenter.service.modules;

import org.mat.ipaas.ucenter.biz.common.api.CommonAPI;
import org.mat.ipaas.ucenter.biz.common.util.RedisUtil;
import org.mat.ipaas.ucenter.service.dto.system.vo.LoginUserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SessionService {

    @Autowired
    private CommonAPI commonAPI;

    @Autowired
    private RedisUtil redisUtil;


    /**
     * 获取登录用户
     *
     * @return
     */
    public LoginUserDTO getLoginUser() {
        LoginUserDTO loginUser = TokenUtils.getLoginUser(commonAPI, redisUtil);
        return loginUser;
    }


}
